<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\agent\validate;

class CopyRightAgentValidate extends \think\Validate
{
    protected $rule = ["id" => ["require", "number", ">=" => 1], "status" => ["require", "number", "in" => [-1, 0, 1]], "name|名称" => ["require"], "image|版权图片" => ["require", "length" => "10,500"], "text|版权文字" => ["require"], "phone|联系号码" => ["require", "length" => "8,20"]];
    protected $scene = ["create" => ["name", "image", "text", "phone"], "get" => ["id"], "destroy" => ["id"]];
    public function sceneUpdate()
    {
        return $this->only(["id", "image", "phone"])->remove("image", "require")->remove("phone", "require");
    }
}

?>